require(['./config'], () => {
    require(['template','header','banner','footer'], (template) => {
        class List{
            constructor () {
                this.getCategory()
            }
            getCategory () {
                $.get('/libs/json/homeCategory.json', resp => {
                    this.renderCategory(resp)
                })
            }
            renderCategory (list) {
                 const html = template('categoryTemplate', { list })
                 $('#categoryList').html(html)
            }

        }
        new List()
    })
})